package com.ruoyi.project.wenyanwen.tag.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.TreeEntity;

/**
 * 内容标签对象 article_tag
 *
 * @author shixiangwen
 * @date 2020-08-03
 */
public class ArticleTag extends TreeEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 标签ID
     */
    private Long tagId;

    /**
     * 分类
     */
    @Excel(name = "分类")
    private String category;

    /**
     * 名称
     */
    @Excel(name = "名称")
    private String name;

    /**
     * 排序
     */
    @Excel(name = "排序")
    private Integer sort;

    /**
     * 父标签ID
     */
    @Excel(name = "父标签ID")
    private Long parentTagId;

    private boolean flag;

    private Integer recom;

    private String introduction;

    /**
     * 是否在首页显示
     */
    private Integer showMain;

    public void setTagId(Long tagId) {
        this.tagId = tagId;
    }

    public Long getTagId() {
        return tagId;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getCategory() {
        return category;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public Integer getSort() {
        return sort;
    }

    public void setParentTagId(Long parentTagId) {
        this.parentTagId = parentTagId;
    }

    public Long getParentTagId() {
        return parentTagId;
    }

    public Integer getShowMain() {
        return showMain;
    }

    public void setShowMain(Integer showMain) {
        this.showMain = showMain;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public Integer getRecom() {
        return recom;
    }

    public void setRecom(Integer recom) {
        this.recom = recom;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("tagId", getTagId())
                .append("category", getCategory())
                .append("name", getName())
                .append("sort", getSort())
                .append("showMain", getShowMain())
                .append("recom", getRecom())
                .append("createTime", getCreateTime())
                .append("createBy", getCreateBy())
                .append("parentTagId", getParentTagId())
                .toString();
    }
}
